package com.test.spi;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.test.aninterface.spiFactory;
import com.test.aninterface.startIntent;
import com.test.mainui.MainActivity;

import java.util.ArrayList;

public class splashActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        Handler handler = new Handler();
        Runnable r = new Runnable() {
            @Override
            public void run() {
                goA();
            }
        };
        handler.postDelayed(r,500);

    }
    public void goA() {
        Intent in = new Intent(splashActivity.this,MainActivity.class);
        in.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(in);
        finish();
    }
}